<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8" />
	<title>更新词库</title>
</head>
<body>
<center>
<p>
<form method="post" action="add.html">
	中文：<input name="ch" /><br/><br/>
	英文：<input name="en" /><br/><br/>
	日文：<input name="jp" /><br/><br/>
	<input type="submit" value="添加到词库" /><br/>
</form>
</p>

<table>
	<thead>
		<tr>
			<th width="200">中文</th>
			<th width="200">英文</th>
			<th width="200">日文</th>
			<th width="200">操作</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach items="${words }" var="item" varStatus="s">
			<tr>
				<td style="text-align:center">${item.ch }</td>
				<td style="text-align:center">${item.en }</td>
				<td style="text-align:center">${item.jp }</td>
				<td style="text-align:center"><a href="del.html?ch=${item.ch }">删除</a></td>
			</tr>
		</c:forEach>
	</tbody>
</table>
</center>
</body>
</html>